home *** CD-ROM | disk | FTP | other *** search
/ Champak 54 / Vol 54.iso / games / wiggi_wa.swf / scripts / DefineSprite_59_Class_Particle / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-27  |  437 b   |  23 lines

  1. function onEnterFrame()
  2. {
  3.    if(_alpha > 0 and this.hitTest(_parent._parent._parent.STAGE))
  4.    {
  5.       this._x += xSpeed;
  6.       this._y += ySpeed + drop;
  7.       xSpeed /= 1.1;
  8.       ySpeed /= 1.2;
  9.       drop++;
  10.       _alpha = _alpha - 20;
  11.    }
  12.    else
  13.    {
  14.       this.removeMovieClip();
  15.    }
  16. }
  17. xSpeed = random(60) - 30;
  18. ySpeed = random(60) - 40;
  19. _xscale = random(50) + 50;
  20. _yscale = _xscale;
  21. drop = 0;
  22. _alpha = 400;
  23.